package com.hjb.service.mapper;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.hjb.service.domain.siteuser.SiteUserExperience;
import com.hjb.service.domain.siteuser.SiteUserExperienceExample;
import com.hjb.service.mybatis.BaseMapper;

public interface SiteUserExperienceMapper extends BaseMapper<SiteUserExperience> {
    int countByExample(SiteUserExperienceExample example);

    int deleteByExample(SiteUserExperienceExample example);

    List<SiteUserExperience> selectByExample(SiteUserExperienceExample example);

    int updateByExampleSelective(@Param("record") SiteUserExperience record, @Param("example") SiteUserExperienceExample example);

    int updateByExample(@Param("record") SiteUserExperience record, @Param("example") SiteUserExperienceExample example);
    
    /**
     * 查询体验金标购买金额
     * @param params
     * @return
     */
    BigDecimal queryExperienceBidAmount(Map<String,Object> params);
    
    /**
     * 根据状态查询体验金收益
     * @param params
     * @return
     */
    BigDecimal queryExperienceProfit(Map<String,Object> params);

}